//package com.gs.user.command;
//
//import com.netflix.hystrix.HystrixCommand;
//import com.netflix.hystrix.HystrixCommandGroupKey;
//import com.netflix.hystrix.HystrixCommandKey;
//import com.netflix.hystrix.HystrixThreadPoolKey;
//
//public class UserCommand extends HystrixCommand<String> {
//
//
//    private String name;
//
//    public UserCommand(String name)
//    {
//        super(Setter.withGroupKey(
//                HystrixCommandGroupKey.Factory.asKey("LogingGroup"))
//                .andCommandKey(HystrixCommandKey.Factory.asKey("UserCommand"))
//        .andThreadPoolKey(HystrixThreadPoolKey.Factory.asKey("UserPool")));
//        this.name =name;
//    }
//
//    @Override
//    protected String run() throws Exception {
//        return null;
//    }
//
//    /**
//     * 降级。Hystrix会在run()执行过程中出现错误、超时、线程池拒绝、断路器熔断等情况时，
//     * 执行getFallBack()方法内的逻辑
//     */
//    @Override
//    protected String getFallback() {
//        return "faild";
//    }
//}
